import {
	MyRequest
} from '@/util/api.js'

// 查询旧数据，同时进入聊天页面
export const GetWechatContent = (acceptId, currentPage, pageSize) => MyRequest({
	url: `/message/getHistoryMessage/${acceptId}/${currentPage}/${pageSize}`,
	method: 'get'
})
//首页未读信息接口数
export const Notsavemessage = (accepterId) => MyRequest({
	url: `/message/getUnRead/${accepterId}`,
	method: 'get'
})
//拿到用户信息
export const GetALLDetailInfo = () => MyRequest({
	url: '/warmstill/userInfos/getUserInfo',
	method: 'get'
})
//订阅消息
export const subscribe = (senderId, accepterId) => MyRequest({
	url: `/room/message/${senderId}/${accepterId}`,
	method: 'get'
})
